<cfsilent>
	<!--- powerful scroll --->
	<cfparam name="possibleBlueLarvaSkinScrolls" type="numeric" default="0" />
	<cfparam name="possibleOrangeLarvaSkinScrolls" type="numeric" default="0" />
	<cfparam name="possibleGreenLarvaSkinScrolls" type="numeric" default="0" />
	<cfparam name="possibleEvilTofuWingScrolls" type="numeric" default="0" />
	<cfparam name="possibleVampireBloodScrolls" type="numeric" default="0" />
	<cfparam name="form.BlueLarvaSkinvailable" type="numeric" default="0" />
	<cfparam name="form.OrangeLarvaSkinAvailable" type="numeric" default="0" />
	<cfparam name="form.GreenLarvaSkinAvailable" type="numeric" default="0" />
	<cfparam name="form.EvilTofuWingAvailable" type="numeric" default="0" />
	<cfparam name="form.VampireBloodAvailable" type="numeric" default="0" />
	<cfparam name="form.multiplicator" type="numeric" default="0" />
	<cfparam name="form.formIsSubmitted" type="boolean" default="false" />

	<cfset blueLarvaSkinMod = 60 />
	<cfset orangeLarvaSkinMod = 50 />
	<cfset greenLarvaSkinMod = 50 />
	<cfset evilTofuWingMod = 40 />
	<cfset vampireBloodMod = 30 />

	<cfif formIsSubmitted>
		<cfset possibleBlueLarvaSkinScrolls = blueLarvaSkinvailable \ blueLarvaSkinMod />
		<cfset possibleOrangeLarvaSkinScrolls = orangeLarvaSkinAvailable \ orangeLarvaSkinMod />
		<cfset possibleGreenLarvaSkinScrolls = greenLarvaSkinAvailable \ greenLarvaSkinMod />
		<cfset possibleEvilTofuWingScrolls = evilTofuWingAvailable \ evilTofuWingMod />
		<cfset possibleVampireBloodScrolls= vampireBloodAvailable \ vampireBloodMod />
		<cfif form.multiplicator gt 0>
			<cfset necessaryBlueLarvaSkin = blueLarvaSkinMod * multiplicator />
			<cfset necessaryOrangeLarvaSkin = orangeLarvaSkinMod * multiplicator />
			<cfset necessaryGreenLarvaSkin = greenLarvaSkinMod * multiplicator />
			<cfset necessaryEvilTofuWing = evilTofuWingMod * multiplicator />
			<cfset necessaryVampireBlood = vampireBloodMod * multiplicator />
		</cfif>
	</cfif>

	<!--- medium scroll --->
	<cfparam name="possibleBlueMedium" type="numeric" default="0" />
	<cfparam name="possibleOrangeMedium" type="numeric" default="0" />
	<cfparam name="possibleGreenMedium" type="numeric" default="0" />
	<cfparam name="form.BlueMediumAvailable" type="numeric" default="0" />
	<cfparam name="form.OrangeMediumAvailable" type="numeric" default="0" />
	<cfparam name="form.GreenMediumAvailable" type="numeric" default="0" />
	<cfparam name="form.multiplicatorMedium" type="numeric" default="0" />
	<cfparam name="form.formIsSubmittedMedium" type="boolean" default="false" />

	<cfset blueMediumMod = 50 />
	<cfset orangeMediumMod = 40 />
	<cfset greenMediumMod = 40 />

	<!--- berechnung nach form submit --->
	<cfif formIsSubmittedMedium>
		<cfset possibleBlueMedium = blueMediumAvailable \ blueMediumMod />
		<cfset possibleOrangeMedium = orangeMediumAvailable \ orangeMediumMod />
		<cfset possibleGreenMedium = greenMediumAvailable \ greenMediumMod />
		<cfif form.multiplicatorMedium gt 0>
			<cfset necessaryBlueMedium = blueMediumMod * multiplicatorMedium />
			<cfset necessaryOrangeMedium = orangeMediumMod * multiplicatorMedium />
			<cfset necessaryGreenMedium = greenMediumMod * multiplicatorMedium />
		</cfif>
	</cfif>
</cfsilent>
<cfoutput>
	<div class="page-title" style="padding:5px;">
		Intelligenzscrolls-umrechnungsformularwasweissich
	</div>
	<div class="float-left" style="padding:5px;">
	<cfpod title="M&auml;chtige scrolls" height="300" width="430" headerStyle="color:black;">
	<form name="intScrollCalculationForm" action="" method="post">
		<table cellpadding="1" cellspacing="1" class="no-border" width="100%">
			<tr>
				<th>
					Blaue Larvenhaut:
				</th>
				<td>
					<input type="text" name="blueLarvaSkinvailable" size="4" value="#form.blueLarvaSkinvailable#" />
				</td>
				<td>
					reicht f&uuml;r #possibleBlueLarvaSkinScrolls# Scrolls
				</td>
			</tr>
			<tr>
				<th>
					Orange Larvenhaut:
				</th>
				<td>
					<input type="text" name="orangeLarvaSkinAvailable" size="4" value="#form.orangeLarvaSkinAvailable#" />
				</td>
				<td>
					reicht f&uuml;r #possibleOrangeLarvaSkinScrolls# Scrolls
				</td>
			</tr>
			<tr>
				<th>
					Gr&uuml;ne Larvenhaut:
				</th>
				<td>
					<input type="text" name="greenLarvaSkinAvailable" size="4" value="#form.greenLarvaSkinAvailable#" />
				</td>
				<td>
					reicht f&uuml;r #possibleGreenLarvaSkinScrolls# Scrolls
				</td>
			</tr>
			<tr>
				<th>
					Schattentofu-Fl&uuml;gel:
				</th>
				<td>
					<input type="text" name="evilTofuWingAvailable" size="4" value="#form.evilTofuWingAvailable#" />
				</td>
				<td>
					reicht f&uuml;r #possibleEvilTofuWingScrolls# Scrolls
				</td>
			</tr>
			<tr>
				<th>
					Vampirblut:
				</th>
				<td>
					<input type="text" name="vampireBloodAvailable" size="4" value="#form.vampireBloodAvailable#" />
				</td>
				<td>
					reicht f&uuml;r #possibleVampireBloodScrolls# Scrolls
				</td>
			</tr>
			<tr>
				<th style="vertical-align:top;">
					Mats multiplicator:
				</th>
				<td style="vertical-align:top;">
					<input type="text" name="multiplicator" size="4" value="#form.multiplicator#" />
				</td>
				<td>
					<input type="hidden" name="formIsSubmitted" value="true" />
					<input type="submit" name="submit" value="berechnen" />
				</td>
			<tr>
				<td colspan="3" class="info-message">
					<cfif formIsSubmitted and form.multiplicator gt 0>
						Um #multiplicator# m&auml;chtige Intelligenz scrolls zu erhalten, brauchst du:<br />
						#necessaryBlueLarvaSkin# Blaue Larvenhaut<br />
						#necessaryOrangeLarvaSkin# Orange Larvenhaut<br />
						#necessaryGreenLarvaSkin# Gr&uuml;ne Larvenhaut<br />
						#necessaryEvilTofuWing# Schattentofu-Fl&uuml;gel<br />
						#necessaryVampireBlood# Vampirblut<br />
						Tauschbar bei Ozen the Wise [2,2]
					</cfif>
				</td>
			</tr>
		</table>
	</form>
	</cfpod>
	</div>

	<div style="padding:5px;" class="float-left">
	<cfpod title="Mittlere Scrolls" height="300" width="430" headerStyle="color:black;">
	<form name="" action="" method="post">
		<table cellpadding="1" cellspacing="1" class="no-border" width="100%">
			<tr>
				<th>
					Blaue Larvenhaut:
				</th>
				<td>
					<input type="text" name="blueMediumAvailable" size="4" value="#form.blueMediumAvailable#" />
				</td>
				<td>
					reicht f&uuml;r #possibleBlueMedium# Scrolls
				</td>
			</tr>
			<tr>
				<th>
					Orange Larvenhaut:
				</th>
				<td>
					<input type="text" name="orangeMediumAvailable" size="4" value="#form.orangeMediumAvailable#" />
				</td>
				<td>
					reicht f&uuml;r #possibleOrangeMedium# Scrolls
				</td>
			</tr>
			<tr>
				<th>
					Gr&uuml;ne Larvenhaut:
				</th>
				<td>
					<input type="text" name="greenMediumAvailable" size="4" value="#form.greenMediumAvailable#" />
				</td>
				<td>
					reicht f&uuml;r #possibleGreenMedium# Scrolls
				</td>
			</tr>
			<tr>
				<th style="vertical-align:top;">
					Mats multiplicator:
				</th>
				<td style="vertical-align:top;">
					<input type="text" name="multiplicatorMedium" size="4" value="#form.multiplicatorMedium#" />
				</td>
				<td>
					<input type="submit" name="submit" value="berechnen" />
					<input type="hidden" name="formIsSubmittedMedium" value="true" />
				</td>
			<tr>
				<td colspan="3" class="info-message">
					<cfif formIsSubmittedMedium and form.multiplicatorMedium gt 0>
						Um #multiplicatorMedium# mittlere Intelligenz Scrolls zu erhalten, brauchst du:<br />
						#necessaryBlueMedium# Blaue Larvenhaut<br />
						#necessaryOrangeMedium# Orange Larvenhaut<br />
						#necessaryGreenMedium# Gr&uuml;ne Larvenhaut<br />
						Tauschbar bei Eowine Fiole [0,5]
					</cfif>
				</td>
			</tr>
		</table>
	</form>
	</cfpod>
	</div>
	<div class="clear-float" />
	<div class="float-left" style="margin-left:5px;">
		<cfpod title="Der beste Weg um Intelligenz auf 101 zu scrollen" height="80" width="870" headerStyle="color:black;">
			25 Kleine Schriftrollen (2500 G&uuml;rtel des Gl&uuml;cks)<br />
			24 Mittlere Schriftrollen (1200 Blaue Larvenhaut, 960 Orangefarbene Larvenhaut, 960 Gr&uuml;ne Larvenhaut)<br />
			26 M&auml;chtige Schriftrollen (1560 Blaue Larvenhaut, 1300 Orangefarbene Larvenhaut, 1300 Gr&uuml;ne Larvenhaut, 1040 Schattentofu-Fl&uuml;gel, 780 Vampirblut)
		</cfpod>
	</div>
</cfoutput>